package com.cskaoyan.bean.bo.wjjBO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author wjj
 * @date 2022-12-29 14:03
 * @describe
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PromotionCouponUpdateBO {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    private String code;

    @Min(0)
    private Short days;

    private int daysType;
    private Boolean deleted;
    private String desc;

    @Min(1)
    private BigDecimal discount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Short goodsType;
    private Integer[] goodsValue;
    private Integer id;

    @Min(0)
    private Short limit;

    @Min(0)
    private BigDecimal min;

    @NotEmpty
    @Length(min = 1,max = 10)
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    private Short status;
    private String tag;
    private Short timeType;

    @Min(0)
    private Integer total;
    private Short type;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
